
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class GuildescortAwardCfg : public ManualSingleton <GuildescortAwardCfg>
{
	friend ManualSingleton <GuildescortAwardCfg>;
public:
	GuildescortAwardCfg();
	~GuildescortAwardCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const GuildescortAwardCfgInfo *GetGuildescortAwardCfgInfo(int32_t awardId);
	const GuildescortAwardCfgMap *GetGuildescortAwardCfgMap() { return &m_GuildescortAwardCfgMap; }
private:
	GuildescortAwardCfgMap m_GuildescortAwardCfgMap;
};

#define  g_MakeGuildescortAwardCfgTable() (GuildescortAwardCfg::Instance())
#define  g_GetGuildescortAwardCfgTable() (GuildescortAwardCfg::GetInstance())
#define  g_DelGuildescortAwardCfgTable() (GuildescortAwardCfg::Destroy())